﻿@model EvincePayroll.Data.EmployeeData
@{
    var Flag = ViewBag.Flag;
    
}
<link href="../../Content/Tab_CSS/general.css" rel="stylesheet" type="text/css" />
<script src="../../Scripts/Tab_Script/tabs.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $.get('/Account/_AddExperince', function (data1) {
            $("#wrkExperince").html(data1);
        });

    });
    function BackToRoleManager() {
        return false;
        window.location = '/EmployeeRegistration/EmployeeTable';
   }

</script>
@using (@Html.BeginForm("GetUserProfile", "Account", FormMethod.Post, new { id = "validate" }))
{ 
    <div class="grid_10">
        <div class="box round first">
            <h2>
                User Profile 
                @if(Flag!=null)
                {
                <button class="btn btn-small" style="background-color: green; float:right; border-color: green;"><a style="color:White;" href="../EmployeeRegistration/EmployeeTable">Back</a></button>}</h2>
                
            <div id="right_cont">
                <!--tab container-->
                <div id="tab_container">
                    <div id="container">
                        <ul class="menu">
                            <li id="news" class="active">Personal Info</li>
                            <li id="tutorials">Educational Info</li>
                            <li id="links">Work Experience</li>
                        </ul>
                        <span class="clear"></span>
                        <div class="content news">
                           <div style="border: 1px solid black">
                    <ul>
                        <li id="li_1">
                            <label class="description" for="element_1">
                                Name
                            </label>
                            <br />
                            <span>
                                @Html.TextBoxFor(m => m.FirstName, new { id = "element_1_1", @class = "element text", maxlength = "255", size = "8", value = "",@readonly="readonly" })
                                <label>
                                    First</label>
                            </span><span>
                                @Html.TextBoxFor(m => m.MiddleName, new { id = "element_1_2", name = "element_1_2", @class = "element text", maxlength = "255", size = "8", value = "", @readonly = "readonly" })
                                <label>
                                    Middel</label>
                            </span><span>
                                @Html.TextBoxFor(m => m.LastName, new { id = "element_1_3", name = "element_1_2", @class = "element text", maxlength = "255", size = "8", value = "", @readonly = "readonly" })
                                <label>
                                    Last</label>
                            </span></li>
                        <li id="li_2">
                            <label class="description" for="element_2">
                                Email
                            </label>
                            <br />
                            <div>
                                @Html.TextBoxFor(m => m.Email, new { id = "element_2", name = "element_2", @class = "element text medium", type = "text", maxlength = "255", value = "", @readonly = "readonly" })
                            </div>
                            <br />
                            <br />
                        </li>
                        <li id="li_3">
                            <label class="description" for="element_3">
                                AlternateEmail
                            </label>
                            <br />
                            <div>
                                @Html.TextBoxFor(m => m.AlternateEmail, new { id = "element_3", name = "element_3", @class = "element text medium", type = "text", maxlength = "255", value = "", @readonly = "readonly" })
                            </div>
                            <br />
                            <br />
                        </li>
                        <li id="li_5">
                            <label class="description" for="element_5">
                                Date of Birth
                            </label>
                            <br />
                            <div>
                                @Html.TextBoxFor(m => m.DateOfBirth, new { id = "DOB", name = "element_3", @class = "element text medium", type = "text", maxlength = "255", value = "", @readonly = "readonly" })
                            </div>
                        </li>
                        <li id="li_6">
                            <label class="description" for="element_6">
                                Profile Image
                            </label>
                            <br />
                            <div>
                                @if (Model.Image1 != null)
                                {
                                    <img width="100px" style="float:left;" height="100px" src="/img/Employee/@Model.Image1" />
                                }
                                else
                                { 
                                    <img width="100px" style="float: left;" height="100px" src="/img/Employee/administrator.jpg" />
                                }
                            </div>
                              <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                        </li>
                        <li id="li_4">
                            <label class="description" for="element_3">
                                Contact 1
                            </label>
                            <br />
                            <div>
                                @Html.TextBoxFor(m => m.ContactNumber1, new { id = "txtContactNumber1", name = "element_3", @class = "element text medium", type = "text", maxlength = "255", value = "", @readonly = "readonly" })
                            </div>
                            <br />
                            <br />
                        </li>
                        <li id="li_7">
                            <label class="description" for="element_3">
                                Contact 2
                            </label>
                            <br />
                            <div>
                                @Html.TextBoxFor(m => m.ContactNumber2, new { id = "txtContactNumber2", name = "element_3", @class = "element text medium", type = "text", maxlength = "255", value = "", @readonly = "readonly" })
                            </div>
                            <br />
                            <br />
                        </li>
                        <li id="li_8">
                            <label class="description" for="element_3">
                                Temprorary Address
                            </label>
                            <br />
                            <div>
                                @Html.TextBoxFor(m => m.TemporaryAddress, new { id = "txtTempAddress", name = "element_3", @class = "element text medium", type = "text", maxlength = "255", value = "", @readonly = "readonly" })
                            </div>
                            <br />
                            <br />
                        </li>
                        <li id="li_9">
                            <label class="description" for="element_3">
                                Permanent Address
                            </label>
                            <br />
                            <div>
                                @Html.TextBoxFor(m => m.PermanentAddress, new { id = "txtPermanentAddress", name = "element_3", @class = "element text medium", type = "text", maxlength = "255", value = "", @readonly = "readonly" })
                            </div>
                            <br />
                            <br />
                        </li>
                        <li id="li_10">
                            <label class="description" for="element_3">
                                PIN Code
                            </label>
                            <br />
                            <div>
                                @Html.TextBoxFor(m => m.Pincode, new { id = "txtPincode", name = "element_3", @class = "element text medium", type = "text", maxlength = "255", value = "", @readonly = "readonly" })
                            </div>
                            <br />
                            <br />
                        </li>
                        <li id="li_11">
                            <label class="description" for="element_3">
                                State
                            </label>
                            <br />
                            <div>
                                @Html.TextBoxFor(m => m.State, new { id = "txtState", name = "element_3", @class = "element text medium", type = "text", maxlength = "255", value = "", @readonly = "readonly" })
                            </div>
                            <br />
                            <br />
                        </li>
                        <li id="li_12">
                            <label class="description" for="element_3">
                                City
                            </label>
                            <br />
                            <div>
                                @Html.TextBoxFor(m => m.City, new { id = "txtCity", name = "element_3", @class = "element text medium", type = "text", maxlength = "255", value = "", @readonly = "readonly" })
                            </div>
                            <br />
                            <br />
                        </li>
                    </ul>
                    </div>
                        </div>
                        <div class="content tutorials">
                           <div style="border: 1px solid black">
                        <h6 style="float: left; margin-left: 10px;">
                            Educational Details</h6>
                            <table style="text-align:left;">
                            <tr>
                            <td><div style="border: 1px solid black; margin-left: 5px; margin-top: 15px; width:500px;">
                            <ul>
                            <li id="li_13">
                                <label class="description" for="element_2">
                                    X Standered
                                </label>
                                <br />
                                <label class="description" for="element_2">
                                    Course Name
                                </label>
                                <br />
                                <div>
                                    @Html.TextBoxFor(m => m.XCourse, new { id = "XCourse", name = "element_2", @class = "element text medium", type = "text", maxlength = "255", value = "", @readonly = "readonly" })
                                    
                                </div>
                                <br />
                                <br />
                                <table>
                                    <tr>
                                        <td colspan="2">
                                            <label class="description" for="element_5">
                                                Duration
                                            </label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <label class="description" for="XDurationFrom">
                                                From
                                            </label>
                                            <br />
                                            <span>
                                               @Html.TextBoxFor(m => m.XFrom, new {@readonly="readonly" })
                                            </span>
                                        </td>
                                        <td>
                                            <label class="description" for="element_5">
                                               - To
                                            </label>
                                            <br />
                                            <span>
                                               @Html.TextBoxFor(m => m.XTo, new { @readonly="readonly"})
                                            </span>
                                        </td>
                                    </tr>
                                </table>
                                <label class="description" for="element_2">
                                    Course Type
                                </label>
                                <br />
                                <div>
                                    @Html.TextBoxFor(m => m.XCourseType, new { id = "XCourseType", name = "element_2", @class = "element text medium", type = "text", maxlength = "255", value = "", @readonly = "readonly" })
                                    
                                </div>
                                <br />
                                <br />
                                <label class="description" for="element_2">
                                    University
                                </label>
                                <br />
                                <div>
                                    @Html.TextBoxFor(m => m.XUniversity, new { id = "XUniversity", name = "element_2", @class = "element text medium", type = "text", maxlength = "255", value = "", @readonly = "readonly" })
                                    
                                </div>
                                <br />
                                <br />
                                <label class="description" for="element_2">
                                    CGPA
                                </label>
                                <br />
                                <div>
                                    @Html.TextBoxFor(m => m.XCGPA, new { id = "XCGPA", name = "element_2", @class = "element text medium", type = "text", maxlength = "255", value = "", @readonly = "readonly" })
                                    
                                </div>
                                <br />
                                <br />
                            </li>
                            </ul>
                        </div></td>
                        <td><div style="border: 1px solid black; margin-left: 5px; margin-top: 15px; width:500px;">
                            <ul>
                            <li id="li_14">
                                <label class="description" for="element_2">
                                    XII Standered
                                </label>
                                <br />
                                <label class="description" for="element_2">
                                    Course Name
                                </label>
                                <br />
                                <div>
                                    @Html.TextBoxFor(m => m.XIICourse, new { id = "XIICourse", name = "element_2", @class = "element text medium", type = "text", maxlength = "255", value = "", @readonly = "readonly" })
                                    
                                </div>
                                <br />
                                <br />
                                <table>
                                    <tr>
                                        <td colspan="2">
                                            <label class="description" for="element_5">
                                                Duration
                                            </label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <label class="description" for="XDurationFrom">
                                                From
                                            </label>
                                            <br />
                                            <span>
                                               @Html.TextBoxFor(m => m.XIIFrom, new {@readonly="readonly" })
                                            </span>
                                        </td>
                                        <td>
                                            <label class="description" for="element_5">
                                               - To
                                            </label>
                                            <br />
                                            <span>
                                               @Html.TextBoxFor(m => m.XIITo, new { @readonly="readonly"})
                                            </span>
                                        </td>
                                    </tr>
                                </table>
                                <label class="description" for="element_2">
                                    Course Type
                                </label>
                                <br />
                                <div>
                                    @Html.TextBoxFor(m => m.XIICourseType, new { id = "XCourseType", name = "element_2", @class = "element text medium", type = "text", maxlength = "255", value = "", @readonly = "readonly" })
                                    
                                </div>
                                <br />
                                <br />
                                <label class="description" for="element_2">
                                    University
                                </label>
                                <br />
                                <div>
                                    @Html.TextBoxFor(m => m.XIIUniversity, new { id = "XUniversity", name = "element_2", @class = "element text medium", type = "text", maxlength = "255", value = "", @readonly = "readonly" })
                                    
                                </div>
                                <br />
                                <br />
                                <label class="description" for="element_2">
                                    CGPA
                                </label>
                                <br />
                                <div>
                                    @Html.TextBoxFor(m => m.XIICGPA, new { id = "XCGPA", name = "element_2", @class = "element text medium", type = "text", maxlength = "255", value = "", @readonly = "readonly" })
                                    
                                </div>
                                <br />
                                <br />
                            </li>
                            </ul>
                        </div></td>
                            </tr>
                            <tr>
                            <td><div style="border: 1px solid black; margin-left: 5px; margin-top: 15px; width:500px;">
                            <ul>
                            <li id="li_15">
                                <label class="description" for="element_2">
                                    Graduation
                                </label>
                                <br />
                                <label class="description" for="element_2">
                                    Course Name
                                </label>
                                <br />
                                <div>
                                    @Html.TextBoxFor(m => m.GCourse, new { id = "GCourse", name = "element_2", @class = "element text medium", type = "text", maxlength = "255", value = "", @readonly = "readonly" })
                                    
                                </div>
                                <br />
                                <br />
                                <table>
                                    <tr>
                                        <td colspan="2">
                                            <label class="description" for="element_5">
                                                Duration
                                            </label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <label class="description" for="XDurationFrom">
                                                From
                                            </label>
                                            <br />
                                            <span>
                                               @Html.TextBoxFor(m => m.GFrom, new { @readonly="readonly"})
                                            </span>
                                        </td>
                                        <td>
                                            <label class="description" for="element_5">
                                               - To
                                            </label>
                                            <br />
                                            <span>
                                               @Html.TextBoxFor(m => m.GTo, new { @readonly="readonly"})
                                            </span>
                                        </td>
                                    </tr>
                                </table>
                                <label class="description" for="element_2">
                                    Course Type
                                </label>
                                <br />
                                <div>
                                    @Html.TextBoxFor(m => m.GCourseType, new { id = "GCourseType", name = "element_2", @class = "element text medium", type = "text", maxlength = "255", value = "", @readonly = "readonly" })
                                    
                                </div>
                                <br />
                                <br />
                                <label class="description" for="element_2">
                                    University
                                </label>
                                <br />
                                <div>
                                    @Html.TextBoxFor(m => m.GUniversity, new { id = "GUniversity", name = "element_2", @class = "element text medium", type = "text", maxlength = "255", value = "", @readonly = "readonly" })
                                    
                                </div>
                                <br />
                                <br />
                                <label class="description" for="element_2">
                                    CGPA
                                </label>
                                <br />
                                <div>
                                    @Html.TextBoxFor(m => m.GCGPA, new { id = "GCGPA", name = "element_2", @class = "element text medium", type = "text", maxlength = "255", value = "", @readonly = "readonly" })
                                    
                                </div>
                                <br />
                                <br />
                            </li>
                            </ul>
                        </div></td>
                        <td><div style="border: 1px solid black; margin-left: 5px; margin-top: 15px; width:500px;">
                            <ul>
                            <li id="li_16">
                                <label class="description" for="element_2">
                                    Post Graduation
                                </label>
                                <br />
                                <label class="description" for="element_2">
                                    Course Name
                                </label>
                                <br />
                                <div>
                                    @Html.TextBoxFor(m => m.PCourse, new { id = "PCourse", name = "element_2", @class = "element text medium", type = "text", maxlength = "255", value = "", @readonly = "readonly" })
                                    
                                </div>
                                <br />
                                <br />
                                <table>
                                    <tr>
                                        <td colspan="2">
                                            <label class="description" for="element_5">
                                                Duration
                                            </label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <label class="description" for="XDurationFrom">
                                                From
                                            </label>
                                            <br />
                                            <span>
                                               @Html.TextBoxFor(m => m.PFrom, new { @readonly="readonly"})
                                            </span>
                                        </td>
                                        <td>
                                            <label class="description" for="element_5">
                                               - To
                                            </label>
                                            <br />
                                            <span>
                                               @Html.TextBoxFor(m => m.PTo, new { @readonly="readonly"})
                                            </span>
                                        </td>
                                    </tr>
                                </table>
                                <label class="description" for="element_2">
                                    Course Type
                                </label>
                                <br />
                                <div>
                                    @Html.TextBoxFor(m => m.PCourseType, new { id = "PCourseType", name = "element_2", @class = "element text medium", type = "text", maxlength = "255", value = "", @readonly = "readonly" })
                                    
                                </div>
                                <br />
                                <br />
                                <label class="description" for="element_2">
                                    University
                                </label>
                                <br />
                                <div>
                                    @Html.TextBoxFor(m => m.PUniversity, new { id = "PUniversity", name = "element_2", @class = "element text medium", type = "text", maxlength = "255", value = "", @readonly = "readonly" })
                                    
                                </div>
                                <br />
                                <br />
                                <label class="description" for="element_2">
                                    CGPA
                                </label>
                                <br />
                                <div>
                                    @Html.TextBoxFor(m => m.PCGPA, new { id = "PCGPA", name = "element_2", @class = "element text medium", type = "text", maxlength = "255", value = "", @readonly = "readonly" })
                                    
                                </div>
                                <br />
                                <br />
                            </li>
                            </ul>
                        </div></td>
                            </tr>
                            </table>
                        
                    </div>
                        </div>
                        <div class="content links">
                            <div id="wrkExperince">
                       
                       </div> 
                        </div>
                    </div>
                    
                    <!--tab container ends-->
                </div>
                <!--middle left-->
            </div>
        </div>
    </div>
}